from pydantic import BaseModel, ConfigDict, Field
from pydantic.alias_generators import to_camel
from typing import Optional
from module_admin.annotation.pydantic_annotation import as_query




class Kuaile8Model(BaseModel):
    """
    kuaile8中奖号码查询表对应pydantic模型
    """
    model_config = ConfigDict(alias_generator=to_camel, from_attributes=True)

    id: Optional[int] = Field(default=None, description='')
    qi: Optional[int] = Field(default=None, description='')
    zj_number: Optional[str] = Field(default=None, description='')






class Kuaile8QueryModel(Kuaile8Model):
    """
    kuaile8中奖号码查询不分页查询模型
    """

    begin_time: Optional[str] = Field(default=None, description='开始时间')
    end_time: Optional[str] = Field(default=None, description='结束时间')


@as_query
class Kuaile8PageQueryModel(Kuaile8QueryModel):
    """
    kuaile8中奖号码查询分页查询模型
    """

    page_num: int = Field(default=1, description='当前页码')
    page_size: int = Field(default=10, description='每页记录数')


class DeleteKuaile8Model(BaseModel):
    """
    删除kuaile8中奖号码查询模型
    """

    model_config = ConfigDict(alias_generator=to_camel)

    ids: str = Field(description='需要删除的')
